/**
 * 
 */
package org.springframework.samples.jpetstore.web.spring;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author lute
 *
 */

@Controller
@RequestMapping("/shop")
public class IndexController {
	
	/**
	 * Get the welcome page of pet store
	 * 
	 * @return
	 */
	@RequestMapping(value = {"", "/welcome"})
	public String welcome() {
		return "welcome";
	}
	
	/**
	 * Entrance for pet store
	 * 
	 * @return
	 */
	@RequestMapping("/index")
	public String index() {
		return "index";
	}

}
